%h2= _("Categories")
= "<br>"
%table{:style=>"border:1px solid;padding:0px;margin:0px;"}
  %tr
    %td
      %b= _("Title")
    %td
      %b= _("Medias")
    %td
      %b= _("Image")    
    %td show
    %td edit
    %td destroy
  - for category in @categories 
    %tr
      %td= link_to category.name, :action => 'show', :id => category 
      %td= link_to _("medias"), :controller => 'media', :action => 'category', :id => category.name 
      %td= image_tag category.image
      %td= button_to _('Show'), :action => 'show', :id => category 
      %td= button_to _('Edit'), :action => 'edit', :id => category 
      %td= button_to _('destroy'), {:action => 'destroy', :id => category},:confirm=>_("Delete category and all associated medias?") 
= will_paginate @categories
= "<br/>"
= link_to _('New category'), :action => 'new'
= "<br />"
